package com.dhcc.bpm.modules.gateway.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 返回码管理表
 * </p>
 *
 * @author xiafayu
 * @since 2021-05-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("OPC_RESPONSE_CODE")
@ApiModel(value="ResponseCode对象", description="返回码管理表")
public class ResponseCode implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "ID")
    @TableField("ID")
    @JsonSerialize(
            using = ToStringSerializer.class,
            nullsUsing = NullSerializer.class
    )
    private Long id;

    @JsonSerialize(
            using = ToStringSerializer.class,
            nullsUsing = NullSerializer.class
    )
    @ApiModelProperty(value = "返回码类型（1：全局返回码，2：渠道返回码，3：接口返回码）")
    @TableField("CODE_TYPE")
    private String codeType;

    @JsonSerialize(
            using = ToStringSerializer.class,
            nullsUsing = NullSerializer.class
    )
    @ApiModelProperty(value = "原返回码")
    @TableField("ORIGINAL_CODE")
    private String originalCode;

    @JsonSerialize(
            using = ToStringSerializer.class,
            nullsUsing = NullSerializer.class
    )
    @ApiModelProperty(value = "返回码")
    @TableField("RESPONSE_CODE")
    private String responseCode;

    @JsonSerialize(
            using = ToStringSerializer.class,
            nullsUsing = NullSerializer.class
    )
    @ApiModelProperty(value = "返回码描述")
    @TableField("RESPONSE_MSG")
    private String responseMsg;

    @JsonSerialize(
            using = ToStringSerializer.class,
            nullsUsing = NullSerializer.class
    )
    @ApiModelProperty(value = "渠道id")
    @TableField("APP_ID")
    private String appId;

    @JsonSerialize(
            using = ToStringSerializer.class,
            nullsUsing = NullSerializer.class
    )
    @ApiModelProperty(value = "接口id")
    @TableField("API_ID")
    private String apiId;

    @JsonSerialize(
            using = ToStringSerializer.class,
            nullsUsing = NullSerializer.class
    )
    @ApiModelProperty(value = "是否刷新")
    @TableField("IS_REFRESH")
    private String isRefresh;


}
